﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Shop.Data.Entities;
using Shop.Data.Business;

//La tabla Factura esta echo por Roger ticona nina
namespace Shop.Data.Test.Business
{
    [TestClass]
    public class FacturaBusinessTest
    {
        [TestMethod]
        public void TestGetListByFilter()
        {
            {

                var lista = FacturaBusiness.GetListByFilter("");
                Assert.IsTrue(lista.Count > 0);
            }


        }

       [TestMethod]
       public void TestCreate()
       {
           Factura Facturas = new Factura
           {
               DniCliente = "73645860",
               RucCliente = "2345678",
               SubTotal = "30",
               Igv = "10" ,
               Total = "230" ,
               FechaFactura = "13/05/2015",
           


           };

           Factura p = FacturaBusiness.Create(Facturas);
           Assert.IsTrue(p.IdFactura != Guid.Empty);
       }

     
       public void TestUpdate()
       {
           Factura Facturas = new Factura
           {

               IdFactura = new Guid(""),
               DniCliente = "",
               RucCliente = "",
               SubTotal = "",
               Igv = "",
               Total = "",
               FechaFactura = "",


           };
           Factura p = FacturaBusiness.Update(Facturas);
           Assert.IsTrue(p.IdFactura != Guid.Empty);
       }


        }
    }

